#include "lib_e.h"
#include <iostream>

namespace LibE {
    void init() {
        std::cout << "LibE: Initializing..." << std::endl;
        LibC::init();
        LibF::init();
    }
    
    void execute_workflow() {
        std::cout << "LibE: Executing workflow..." << std::endl;
        
        // 使用LibC处理字符串
        std::string processed = LibC::process_string("hello world");
        LibC::log_message("Workflow step 1 completed");
        
        // 使用LibF设置配置
        LibF::set_config("workflow_status", "running");
        LibF::set_config("processed_string", processed);
        
        std::cout << "LibE: Workflow completed with result: " << processed << std::endl;
    }
    
    void finalize() {
        std::cout << "LibE: Finalizing..." << std::endl;
        LibF::save_config();
        LibC::log_message("LibE finalized");
    }
}